package com.pan.behavioral.template;

import com.pan.behavioral.template.read.PrintFileContent;
import com.pan.behavioral.template.read.ReadFile;
import com.pan.behavioral.template.read.impl.ReadChineseTxt;
import com.pan.behavioral.template.read.impl.ReadEnglishTxt;

public class TemplateApplication {


    public static void main(String[] args) {
        String txtPath = "src/main/resources/test.txt";
        ReadFile readEnglishTxt = new ReadEnglishTxt(txtPath);
        ReadFile readChineseFile = new ReadChineseTxt(txtPath);
        PrintFileContent printFileContent = new PrintFileContent();
        printFileContent.run(readChineseFile);
    }

}
